/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package model;

import org.abego.treelayout.util.DefaultTreeForTreeLayout;

/**
 *
 * @author Max
 */
public class TreeModel {
    
    public static DefaultTreeForTreeLayout<TextInBox> getTreeLayout() {
        TextInBox root = new TextInBox("enthält", 80, 40);
        TextInBox n1 = new TextInBox("Geschlecht", 80, 40);
        TextInBox n1n1 = new TextInBox("n(3.0)", 80, 40);
        TextInBox n1n2 = new TextInBox("j(1.0)", 80, 40);
        TextInBox n2 = new TextInBox("Wert", 80, 40);
        TextInBox n2n1 = new TextInBox("n(1.0)", 80, 40);
        TextInBox n2n2 = new TextInBox("j(0.0)", 80, 40);
        TextInBox n2n3 = new TextInBox("j(2.0)", 80, 40);
        TextInBox n3 = new TextInBox("Alter", 80, 40);
        TextInBox n3n1 = new TextInBox("j(2.0)", 80, 40);
        TextInBox n3n2 = new TextInBox("n(2.0)", 80, 40);
        DefaultTreeForTreeLayout<TextInBox> tree= new DefaultTreeForTreeLayout<TextInBox>(root);
        tree.addChild(root, n1);
        tree.addChild(root, n2);
        tree.addChild(root, n3);
        tree.addChild(n1, n1n1);
        tree.addChild(n1, n1n2);
        tree.addChild(n2, n2n1);
        tree.addChild(n2, n2n2);
        tree.addChild(n2, n2n3);
        tree.addChild(n3, n3n1);
        tree.addChild(n3, n3n2);
        return tree;
    }
    
}
